package dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@Schema(name = "NoticeEditDTO", title = "编辑公告数据模型", description = "编辑公告时传递的数据模型")
public class NoticeEditDTO {

    @Schema(description = "公告id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1221")
    private Long id;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "公告标题")
    private String title;

    @Schema(description = "内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "公告内容")
    private String content;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer order;
}
